#ifndef GAME_H
#define GAME_H

#include "graphics.h"
#include "map.h"
#include "timer.h"

class cGame
{
    public:
        ~cGame();

        bool init();
        void loop();
        void shutdown();
        void test();
        void startMap();
        void endMap();

        cMap* currentMap();
        bool isPaused();

        static cGame& instance();
    protected:
    private:
        cGraphics m_graphics;
        cMap* m_map;
        cTimer m_timer;
        long long m_startTime;
        long long m_lastTime;
        int m_frameTime;
        int m_frame;
        bool m_loop, m_pause;

        cGame();
};

#endif // GAME_H
